import jieba;
s = input("输入中文字符(包含标点符号):").replace("，","")\
.replace("“","").replace("。","").replace("”","")\
.replace("、","").replace(";","").replace(":","")\
.replace("?","").replace("!","")

words = jieba.lcut(s)
all_words = {}
max = 0;
high_words = ""

for i in words:
    print(i,end = "/")
    all_words[i] = all_words.get(i,0) + 1
'print("/".join(words))'
print("\n中文词语数是:{}".format(len(words)))

for key in all_words:
    if max < all_words[key]:
        max = all_words[key]
        high_words = key
    elif max == all_words[key]:
        high_words +=  " " + key
    print("{}:{}".format(key,all_words[key]))
print("出现次数最多的词是({}):{}次".format(high_words,max))
